//响应数据
export interface ResponseData {
  code: number
  message: string
  ok?: boolean
}

export interface Category {
  id: number | string
  name: string
  category1Id?: number | string
  category2Id?: number | string
}

//响应数据
export interface CategoryResponseData extends ResponseData {
  data: Category[]
}

export interface AttrValue {
  id?: number
  valueName: string
  attrId?: number
  flag?: boolean
}
export type AttrValueList = AttrValue[]

export interface Attr {
  id?: number
  attrName: string
  categoryId: number | string
  categoryLevel: number
  attrValueList: AttrValueList
}
export type AttrList = Attr[]

export interface AttrResponseData extends ResponseData {
  data: AttrList
}

//响应数据
export interface Result<T = any> {
  code: number
  data: T
  message: string
}
